﻿using ABCNet.NetPoints;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace ABCNet.NetPointFinancialLists
{
    /// <summary>
    /// 用户账户流水表
    /// </summary>
    [Table("N_NetPointFinancialLists")]
    public class NetPointFinancialList : Abp.Domain.Entities.Auditing.CreationAuditedEntity
    {
        /// <summary>
        /// 会员Id
        /// </summary>
        public long UserId { get; set; }

        /// <summary>
        /// 点位Id
        /// </summary>
        public int NetPointId { get; set; }

        /// <summary>
        /// 业务类型
        /// </summary>
        public PBusinessTypes PBusinessType { get; set; }

        /// <summary>
        /// 业务类型名称
        /// </summary>
        [StringLength(256)]
        public string PBusinessTypeName { get; set; }

        /// <summary>
        /// 改变之前
        /// </summary>
        public decimal BeforeChangedAmount { get; set; }

        /// <summary>
        /// 改变之后
        /// </summary>
        public decimal AfterChangedAmount { get; set; }

        /// <summary>
        /// 金额
        /// </summary>
        public decimal ChangedAmount { get; set; }

        /// <summary>
        /// 业务Id
        /// </summary>
        public int? BusinessId { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [StringLength(256)]
        public string Remark { get; set; }

        /// <summary>
        /// 层级别
        /// </summary>
        public int Layer { get; set; }

        /// <summary>
        /// 网组类型
        /// </summary>
        public NetTypes NetType { get; set; }

    }

    /// <summary>
    /// 业务类型
    /// </summary>
    public enum PBusinessTypes : int
    {
        A网1层单点收益 = 0,
        A网2层单点收益 = 1,
        A网3层单点收益 = 2,
        A网4层单点收益 = 3,
        A网5层单点收益 = 4,
        B网1层单点收益 = 5,
        B网2层单点收益 = 6,
        B网3层单点收益 = 7,
        B网4层单点收益 = 8,
        B网5层单点收益 = 9,
        C网1层单点收益 = 10,
        C网2层单点收益 = 11,
        C网3层单点收益 = 12,
        C网4层单点收益 = 13,
        C网5层单点收益 = 14,
        A网赠点扣除 = 15,
        B网赠点扣除 = 16,
        C网赠点扣除 = 17,
        A网1层转入提现账户 = 18,
        A网2层转入提现账户 = 19,
        A网3层转入提现账户 = 20,

        A网4层转入提现账户 = 21,
        A网5层转入提现账户 = 22,

        B网1层转入提现账户 = 23,
        B网2层转入提现账户 = 24,
        B网3层转入提现账户 = 25,
        B网4层转入提现账户 = 26,
        B网5层转入提现账户 = 27,
        C网1层转入提现账户 = 18,
        C网2层转入提现账户 = 29,
        C网3层转入提现账户 = 30,
        C网4层转入提现账户 = 31,
        C网5层转入提现账户 = 32,

        A网4层一半转入提现账户 = 33,
        A网5层一半转入提现账户 = 34,
        转入提现账户 = 35,
        转提现扣税 = 36
    }
}
